package com.study.zouchao.superproject.newsdetail;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.study.zouchao.superproject.R;
import com.study.zouchao.superproject.qustionadd.view.QuestionAddActivity;
import com.study.zouchao.superproject.qustionadd.view.QuestionAddFragment;

public class NewDetailActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new_detail);
    }

    public static void actionStartNewDetailActivity(Context context, String url) {
        Intent intent = new Intent(context, NewDetailActivity.class);
        intent.putExtra(NewsDetailFragment.KEY_TARGET_URL, url);
//        context.startActivity(intent);
//        ((Activity)context).overridePendingTransition(R.anim.anim_enter_activity, R.anim.anim_exit_activity);
    }
}
